package com.xuzimian.demo.java.proxy

class SubjectProxy(private val subject: ISubject):ISubject {
    override fun processBusiness(): String? {
        println("Before ...")
        val result = subject.processBusiness()
        println("After ...")
        return result
    }
}

object StaticProxyDemo {
    @JvmStatic
    fun main(args: Array<String>) {
        SubjectProxy(RealSubject()).processBusiness()
        val ccc =aaa.bbb
    }
}
